package com.qaml.mes.device.api;

import com.qaml.mes.device.dto.eqp.HolidayApplyDTO;
import com.qaml.mes.device.dto.eqp.HolidayApplyOrderIdDTO;
import com.qaml.mes.device.vo.eqp.HolidayApplyAuthVO;

/**
 * <p>
 * 假日申请表 服务类
 * </p>
 *
 * @author leikai
 * @since 2024-03-04
 */
public interface HolidayApplyService {

    /**
     * 创建假期申请
     *
     * @param holidayApplyDTO 假期申请
     * @return
     */
    void createHolidayApply(HolidayApplyDTO holidayApplyDTO);


    /**
     * 获取假期申请详情
     *
     * @param holidayApplyDTO 假期申请
     * @return
     */
    HolidayApplyAuthVO getHolidayApply(HolidayApplyDTO holidayApplyDTO);

    /**
     * 通过假期申请
     *
     * @param holidayApplyOrderId
     */
    void passCommit(HolidayApplyOrderIdDTO holidayApplyOrderId);

    /**
     * 驳回假期申请
     *
     * @param holidayApplyOrderId
     */
    void overruledCommit(HolidayApplyOrderIdDTO holidayApplyOrderId);
}


